Application based intrusion detection

ABSTRACT

Intrusion detection is performed by communicating an initialization request from an intrusion detection system enabled application to an intrusion module to begin intrusion detection. Also, a request is communicated to a policy transfer agent to provide an intrusion detection system policy specifically configured for the application. The application identifies where in the application code the intrusion detection system policy is to be checked against an incoming or outgoing communication. Information obtained by the application program is selectively evaluated against information in the intrusion detection system policy. A conditional response is made based upon information in the intrusion detection system policy if an intrusion associated with the application program is detected.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. Pat. application Ser. No. 10/457,908, entitled APPLICATION BASED INTRUSION DETECTION, filed Jun. 10, 2003, now allowed, the disclosure of which is incorporated by reference herein.

FIELD OF THE INVENTION

This invention relates generally to computer security and, more particularly, to detecting computer intrusions that violate computer security policies.

BACKGROUND OF THE INVENTION

In the computer security field, “intrusion” is a broad term encompassing many undesirable activities. The objective of an intrusion may be to acquire information that a person is not authorized to have (referred to as “information theft”), it may be to cause business harm by rendering a network, system, or application unusable (referred to as “denial of service”) and/or, it may be to gain unauthorized use of a system as a stepping stone for further intrusions elsewhere. Intrusions can follow a pattern of information gathering, attempted access, and then destructive attacks.

Some intrusions can be detected and neutralized by the target system, although often not in real time. Other intrusions may not be effectively neutralized by the target system. Intrusions can also make use of “spoofed” packets which are not easily traceable to their true origin. Many intrusions now make use of unwitting accomplices—that is, machines or networks that are used without authorization to hide the identity of the intruder. For these reasons, detecting attempts at information gathering, access attempts, and intrusion accomplice behaviors can be an important part of intrusion detection.

As illustrated in FIG. 1, intrusions can be initiated against a host 100 on an internal network 115 by, for example, an intruder 130 that is on an external network 135 (e.g., internet) or from an intruder 110 that is on the internal network 115. A firewall 120 may provide some protection against intrusions from external networks. However, it may not prevent intrusions once the firewall has “approved” entry into the internal network 115, and it may not provide protection when the intrusion is initiated from inside the internal network 115 (e.g., intruder 110). In addition, end-to-end encryption can limit the types of intrusions that can be detected by an intermediate device, such as the firewall 120, because the intermediate device may be unable to evaluate the packets in an unencrypted form for evidence of an intrusion.

An Intrusion Detection System (hereinafter, “IDS”) can provide detection of many types of intrusions. Referring to FIG. 2, an IDS may include sniffers that examine network traffic. Sniffers may be placed at strategic points in networks, such as shown by a sniffer 210 in front of the firewall 220; by a sniffer 230 behind the firewall 220; by a sniffer 240 on the internal network 115; and/or by a sniffer 250 between a host 260 and the internal network 115. Sniffers may use “pattern matching” to try to match communicated information against a known intrusion signature. Performing pattern matching on all network traffic can require significant processing time, and may result in a backlog of traffic to be analyzed and a resulting delay in identifying an intrusion. Growth in the number of known intrusion signatures that are used for pattern matching further increases the processing time and associated delay in identifying an intrusion.

Upon detecting an intrusion, a sniffer may alert an IDS management system 270, which may take action to stop an intrusion. For example, sniffers 230 and 250 have been illustrated as communicating “alerts” to the IDS management system 270. Sniffers may also, or may alternatively, notify a service, such as IBM's Emergency Response Services (ERS) unit 200, which provides logging and analysis of security alerts that are detected by IDS components. In the illustrated example, the sniffer 210 before the firewall 220 sends alerts to the Emergency Response Services unit 200. However, a damaging intrusion may occur before a sniffer identifies the intrusion and an IDS management system takes action to stop the intrusion.

Further background discussion on intrusion detection services is provided in U.S. patent application Ser. No. 10/058,870, filed Jan. 28, 2002, and entitled Integrated Intrusion Detection Services.

SUMMARY OF THE INVENTION

According to aspects of the present invention, an intrusion detection system is provided for detecting intrusions in a host computer that is connected to an intrusion detection management system. Intrusion detection is performed by executing on the host computer, an intrusion detection system agent, an intrusion detection system policy transfer agent and an intrusion detection system enabled application. The intrusion detection system enabled application has an application program and an intrusion detection system module. Intrusion detection is further performed by communicating an initialization request from the application program to the corresponding intrusion detection system module to begin intrusion detection, and by initiating a request by the intrusion detection system module to the policy transfer agent to provide an intrusion detection system policy specifically configured for the intrusion detection system enabled application.

Still further, intrusion detection is performed by identifying by the application program, where in the application code the intrusion detection system policy is to be checked against information that has either been received as an incoming communication, or which is to be sent as an outgoing communication. Information is obtained by the application program and the information obtained by the application program is selectively evaluated against information in the intrusion detection system policy by the corresponding intrusion detection system module. A conditional response is made based upon information in the intrusion detection system policy if an intrusion associated with the application program is detected. Further, a request is communicated from the intrusion detection system module to the intrusion detection system agent to take action if the conditional response determines that the intrusion detection system agent should take action. Further, an action is taken based upon information received from the intrusion detection system module if the conditional response determines that the application program should take action.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a computer networking system according to the prior art that is subject to security intrusions.

FIG. 2 is a block diagram of a computer networking system with intrusion detection components according to the prior art.

FIG. 3 is a block diagram of a computer networking system with intrusion detection components according to various embodiments of the present invention.

FIG. 4 is a block diagram of a host computer with an intrusion detection system enabled application according to various embodiments of the present invention.

FIG. 5 is a flowchart that illustrates operations for detecting intrusions according to various embodiments of the present invention.

FIG. 6 is a block diagram of a computer system according to embodiments of the present invention.

DETAILED DESCRIPTION

The present invention now will be described more fully hereinafter with reference to the accompanying drawings, in which illustrative embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art. Like numerals refer to like elements throughout.

As will be appreciated by one of skill in the art, the present invention may be embodied as methods, systems, and/or computer program products. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects all generally referred to herein as a “circuit” or “module.” Furthermore, the present invention may take the form of a computer program product on a computer-usable storage medium having computer-usable program code embodied in the medium. Any suitable computer readable medium may be utilized including hard disks, CD-ROMs, optical storage devices, a transmission media such as those supporting the Internet or an intranet, or magnetic storage devices.

Computer program code for carrying out operations of the present invention may be written in an object oriented programming language such as Java®, Smalltalk or C++. However, the computer program code for carrying out operations of the present invention may also be written in conventional procedural programming languages, such as the “C” programming language. The program code may execute entirely on the user computer, partly on the user computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer. In the latter scenario, the remote computer may be connected to the user's computer through, for example, a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).

The present invention is described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.

FIG. 3 illustrates a computer networking system with intrusion detection components according to various embodiments of the present invention. The system includes a host computer 300 and an IDS management system 310 that are connected by an internal network 320. The internal network 320 is connected to an external network 330 through a firewall 340. The IDS management system 310 maintains an IDS policy for the system, thereby forming an IDS policy repository. In contrast to the prior art computer system illustrated in FIG. 2, the host 300 shown in FIG. 3 is at least partially responsible for detecting intrusions into itself The host 300 includes at least one IDS-enabled application 350 that is configured to detect intrusions into the IDS-enabled application 350 itself. The system may further include additional hosts and/or additional IDS components such as, for example, sniffers on the internal network 320 and/or the external network 330 and an alert monitoring system such as, for example, the ERS 200 in FIG. 2.

The IDS policies in the IDS management system 310 and/or the host 300 may include one or more signature files and/or policy rules. The signature files may be compared against network traffic to identify possible intrusions, and may include general intrusion signatures and/or specific known intrusion signatures. The policy rules may include conditional parts that describe expected characteristics of an intrusion, and may be used to determine when a rule is to be triggered, and may describe one or more actions to be taken in response to detecting an intrusion.

Referring to FIG. 4, the host 300 may execute the one or more IDS-enabled applications 350, an IDS agent 360, an IDS policy transfer agent 370, network programs, such as a TCP/IP stack 380, and an operating system 390 that manages communication among the applications, network programs, and agents. The IDS-enabled application 350 may include an application program, an IDS module, and an IDS policy, and one or more of which may be allocated to the same, or different, logical memory space during the execution of the application program. The application program provides application functionality to, for example, an operator of the host, which is unrelated to detection of intrusions, and, as described below, the application program may also use the IDS module to detect an intrusion and/or to take actions when an intrusion has been detected.

The IDS policy in the IDS-enabled applications 350 may be downloaded from the IDS management system 310, which may allow more uniform treatment of intrusion detection among hosts in the system. For example, the IDS-enabled application 350 may become initialized with an IDS policy by the application program calling the IDS module with an initialization request. The application program may inform the IDS module where in the application program the IDS policy is to be checked against information that has been received from an incoming communication and/or which is to be sent as an outgoing communication. The IDS module may cause the IDS policy transfer agent 370 to read an IDS policy that may be specifically configured for the IDS-enabled application 350 from the IDS management system 310, and to allocate the retrieved IDS policy to the local memory space of the application program. For various reasons, such as security, the application program should be provided only with relevant IDS policies of which it has been authorized to receive. The IDS policy transfer agent 370 may check the authorization of the application to view an IDS policy before placing the retrieved IDS policy in the memory space of the application. For example, in a host with a z/OS operating system, a RACF (resource access control facility) resource profile may be defined that represents the policy, the discipline (IDS), and the application. The permission of the RACF resource profile may then be verified. The IDS policy transfer agent 370 may then provide a local copy of the IDS policy to the IDS module within the application memory space.

The application program may detect intrusions by accessing the IDS module to compare communication information that has been received from, for example, the internal network 320 and/or another application against the IDS policy in the IDS-enabled application. The application program may also detect intrusions in response to, for example, sensing an event that is indicative of a potential intrusion and using the IDS module to evaluate such events based on rules in the IDS policy. For example, the application program may call the IDS module to evaluate a file transfer request made under a file transfer protocol (FTP) where the recipient of the requested file is a computer other than the one initiating the request. The application program (i.e., FTP) may determine that the example file transfer request is a bounce attack intrusion, which is well known in the art.

When an intrusion has been detected, the application program may then use the IDS module to retrieve appropriate actions from the IDS policy that can be taken by the application and/or the IDS agent to stop, and possibly remedy, the effect of an intrusion. FIG. 5 shows operations that may be performed to detect intrusions and to take responsive actions. In block 500, the application program receives information, such as a network data packet, from the internal network 320 and/or another application, and/or has information that is to be transmitted. In block 510, the information is selectively evaluated for an intrusion by the IDS module. The evaluation may include comparing the information to the IDS policy, which may include a set of known intrusion signatures that may be matched to the information. When an intrusion is detected at block 510, a conditional response is made at block 520 depending upon whether response actions, which may be taken in response to an intrusion, are to be taken by the IDS agent 360 or by the application 350. When the response actions are to be taken by the IDS agent, at block 520, the IDS module may provide information on itself and/or characteristics of the intrusion to the IDS agent 360 and request action therefrom. At block 530, the IDS agent 360 performs action based on the information from the IDS module. At block 550, the IDS agent 360 may report an alert to the IDS management system 310, where the alert may be logged, further evaluation may be performed to determine whether an intrusion has occurred, and/or where further actions may be performed to stop the intrusion and/or to remedy its effects.

At block 540, the application 350 takes actions such as to, for example, stop the intrusion and/or to remedy its affects. Actions by the application 350 may include discarding the information and/or discontinuing communication with a source of the incoming information (e.g., breaking the connection with the source and/or closing a socket).

Referring back to block 510, when an intrusion is not detected, the application 350 may proceed to use the incoming communication information.

FIG. 6 illustrates an exemplary embodiment of a host computer system 600 suitable for executing one or more IDS-enabled applications, an IDS agent, an IDS policy transfer agent, network programs, and an operating system, for example as shown in FIG. 4, in accordance with embodiments of the present invention. The computer system 600 typically includes a processor 610 that communicates with a memory 620. The computer system 600 may, optionally, include input device(s) 630 such as a keyboard or keypad, and a display 640 (illustrated in dashed lines) that also communicate with the processor 610. The computer system 600 may further include optional devices such as a speaker 650, and an I/O data port(s) 660 that also communicate with the processor 610. The I/O data ports 660 can be used to transfer information between the computer system 600 and another computer system or a network. These components may be conventional components such as those used in many conventional computer systems which may be configured to operate as described herein.

The processor 610 can be any commercially available or custom microprocessor. The memory 620 is representative of the overall hierarchy of memory devices containing the software and data used to implement the functionality of the computer system 600. The memory 620 can include, but is not limited to, the following types of devices: cache, ROM, PROM, EPROM, EEPROM, flash memory, SRAM, and DRAM. The memory 620 may include several categories of software and data used in the computer system 600: an operating system; application programs; input/output (I/O) device drivers; and data. As will be appreciated by those of skill in the art, the operating system may be any operating system suitable for use with a computer system, such as OS/2, AIX or System390 from International Business Machines Corporation, Armonk, N.Y., Windows95, Windows98 , Windows2000, Windows NT, Windows ME, Windows XP from Microsoft Corporation, Redmond, Wash., Unix or Linux. The I/O device drivers typically include software routines accessed through the operating system by the application programs to communicate with devices such as the I/O data port(s) 660 and certain memory 620 components. The application programs are illustrative of the programs that implement the various features of the data processing system 600 and preferably include at least one application which supports operations according to embodiments of the present invention. Finally, the data represents the static and dynamic data used by the application programs, the operating system, the I/O device drivers 660, and other software programs that may reside in the memory 620.

In the drawings and specification, there have been disclosed embodiments of the invention and, although specific terms are employed, they are used in a generic and descriptive sense only and not for purposes of limitation, the scope of the invention being set forth in the following claims. 

What is claimed is:
 1. A method of detecting an intrusion in a host computer that is connected to an intrusion detection management system comprising: executing on the host computer, an intrusion detection system agent, and an intrusion detection system enabled application, where the intrusion detection system enabled application includes an application program and an intrusion detection system module, and wherein the application program provides application functionality that is unrelated to detecting intrusions and also interacts with the intrusion detection system module to perform at least one of detecting intrusions and taking action in response to detected intrusion; calling the intrusion detection system module by the application program of the corresponding intrusion detection system enabled application with an initialization request to begin intrusion detection; obtaining, by the intrusion detection system module, an intrusion detection system policy specifically configured for the intrusion detection system enabled application; and detecting for intrusions by the intrusion detection system enabled application by: identifying by the application program, information to be checked for intrusions; evaluating selectively, by the intrusion detection system module, the information to be checked for intrusions against the intrusion detection system policy to determine whether there has been an intrusion; and making a conditional response, upon determining that there has been an intrusion, by: providing, by the intrusion detection system enabled application a request to the intrusion detection system agent to take action to respond to the intrusion if the conditional response determines that the intrusion detection system agent should take action; and taking action by the intrusion detection system enabled application to respond to the intrusion if the conditional response determines that the application program should take action; wherein: identifying by the application program, the information to be checked for intrusions comprises: receiving, by the application program, the information to be checked for intrusions as communication information that has been received from at least one of an internal network or another application; and evaluating selectively, by the intrusion detection system module, the information to be checked for intrusions against the intrusion detection system policy comprises: accessing the intrusion detection system module by the application program to compare the received communication information against the obtained intrusion detection system policy.
 2. The method of claim 1, wherein: identifying by the application program, information to be checked for intrusions comprises identifying by the application program, where in the application program the intrusion detection system policy is to be checked against information that has either been received as an incoming communication, or which is to be sent as an outgoing communication; and taking action comprises discarding information in the communication.
 3. The method of claim 2, wherein taking action further comprises discontinuing communication with a source of the communication.
 4. The method of claim 1, wherein: detecting for intrusions by the intrusion detection system enabled application further comprises sensing an event that is indicative of a potential intrusion; and taking action comprises selecting a response based on characteristics of the detected intrusion by the application program associated with the detected intrusion.
 5. The method of claim 1, wherein: identifying by the application program, information to be checked for intrusions comprises: informing, by the application program to the intrusion detection system module, where in the application program the intrusion detection system policy is to be checked against the information.
 6. A computer-readable storage device with an executable program for detecting an intrusion in a host computer that is connected to an intrusion detection management system, wherein the program instructs a processor to perform: executing on the host computer, an intrusion detection system agent, and an intrusion detection system enabled application, where the intrusion detection system enabled application includes an application program and an intrusion detection system module, and wherein the application program provides application functionality that is unrelated to detecting intrusions and also interacts with the intrusion detection system module to perform at least one of detecting intrusions and taking action in response to detected intrusions; calling the intrusion detection system module by the application program of the corresponding intrusion detection system enabled application with an initialization request to begin intrusion detection; obtaining, by the intrusion detection system module, an intrusion detection system policy specifically configured for the intrusion detection system enabled application; and detecting for intrusions by the intrusion detection system enabled application by: identifying, by the application program, information to be checked for intrusions; evaluating, selectively, by the intrusion detection system module, the information to be checked for intrusions against the intrusion detection system policy to determine whether there has been an intrusion; and making a conditional response, upon determining that there has been an intrusion, by: providing, by the intrusion detection system enabled application a request to the intrusion detection system agent to take action to respond to the intrusion if the conditional response determines that the intrusion detection system agent should take action; and taking action by the intrusion detection system enabled application to respond to the intrusion if the conditional response determines that the application program should take action; wherein: the program code for identifying by the application program, the information to be checked for intrusions comprises program code for: receiving, by the application program, the information to be checked for intrusions as communication information that has been received from at least one of an internal network or another application; and the program code for evaluating selectively, by the intrusion detection system module, the information to be checked for intrusions against the intrusion detection system policy comprises program code for: accessing the intrusion detection system module by the application program to compare the received communication information against the obtained intrusion detection system policy.
 7. The computer readable storage device of claim 6, wherein: identifying by the application program, information to be checked for intrusions comprises identifying by the application program, where in the application program the intrusion detection system policy is to be checked against information that has either been received as an incoming communication, or which is to be sent as an outgoing communication; and taking action comprises discarding information in the communication.
 8. The computer readable storage device of claim 7, wherein taking action further comprises discontinuing communication with a source of the communication.
 9. The computer readable storage device of claim 6, wherein: detecting for intrusions by the intrusion detection system enabled application further comprises sensing an event that is indicative of a potential intrusion; and taking action comprises selecting a response based on characteristics of the detected intrusion by the application program associated with the detected intrusion.
 10. The computer readable storage device of claim 6, wherein: the program code for identifying by the application program, information to be checked for intrusions comprises program code for: informing, by the application program to the intrusion detection system module, where in the application program the intrusion detection system policy is to be checked against the information.
 11. An apparatus for detecting an intrusion in a host computer that is connected to an intrusion detection management system, the apparatus comprising a processor coupled to memory, wherein the processor is programmed to detect for intrusions by: executing on the host computer, an intrusion detection system agent, and an intrusion detection system enabled application, where the intrusion detection system enabled application includes an application program and an intrusion detection system module, and wherein the application program provides application functionality that is unrelated to detecting intrusions and also interacts with the intrusion detection system module to perform at least one of detecting intrusions and taking action in response to detected intrusion; calling the intrusion detection system module by the application program of the corresponding intrusion detection system enabled application with an initialization request to begin intrusion detection; obtaining, by the intrusion detection system module, an intrusion detection system policy specifically configured for the intrusion detection system enabled application; and detecting for intrusions by the intrusion detection system enabled application by: identifying by the application program, information to be checked for intrusions; evaluating selectively, by the intrusion detection system module, the information to be checked for intrusions against the intrusion detection system policy to determine whether there has been an intrusion; and making a conditional response, upon determining that there has been an intrusion, by: providing, by the intrusion detection system enabled application a request to the intrusion detection system agent to take action to respond to the intrusion if the conditional response determines that the intrusion detection system agent should take action; and taking action by the intrusion detection system enabled application to respond to the intrusion if the conditional response determines that the application program should take action; wherein the processor is further programmed for: identifying by the application program, information to be checked for intrusions by executing code for: receiving, by the application program, the information to be checked for intrusions as communication information that has been received from at least one of an internal network or another application; and evaluating selectively, by the intrusion detection system module, the information to be checked for intrusions against the intrusion detection system policy by executing code for: accessing the intrusion detection system module by the application program to compare the received communication information against the obtained intrusion detection system policy.
 12. The apparatus of claim 11, wherein: identifying by the application program, information to be checked for intrusions comprises identifying by the application program, where in the application program the intrusion detection system policy is to be checked against information that has either been received as an incoming communication, or which is to be sent as an outgoing communication; and taking action comprises discarding information in the communication.
 13. The apparatus of claim 12, wherein taking action further comprises discontinuing communication with a source of the communication.
 14. The apparatus of claim 11, wherein: detecting for intrusions by the intrusion detection system enabled application further comprises sensing an event that is indicative of a potential intrusion; and taking action comprises selecting a response based on characteristics of the detected intrusion by the application program associated with the detected intrusion.
 15. The apparatus of claim 11, wherein the processor is further programmed for: identifying by the application program, information to be checked for intrusions by executing code for: informing, by the application program to the intrusion detection system module, where in the application program the intrusion detection system policy is to be checked against the information. 